package io.datajek.springbasics.movierecommendersystem.lesson10;
import io.datajek.springbasics.movierecommendersystem.lesson9.CollaborativeFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan("io.datajek.springbasics.movierecommendersystem.lesson10")
public class MovieRecommenderSystemApplication {
    public static void main(String[] args) {

        ApplicationContext applicationContext=SpringApplication.run(MovieRecommenderSystemApplication.class,args);
        //从Application Context中获得Singleton Bean


        System.out.println("ContentBasedFilter bean found = " + applicationContext.containsBean("contentBasedFilter"));
        System.out.println("CollaborativeFilter bean found = " + applicationContext.containsBean("collaborativeFilter"));
    }

}
